package model

import (
	"vben-common/datatypes"
)

type RoleMenuModel struct {
	Id        int64          `gorm:"primaryKey" form:"id" json:"id"`
	MenuId    int64          `gorm:"column:menu_id" form:"menu_id" json:"menu_id"`
	RoleId    int64          `gorm:"column:role_id" form:"role_id" json:"role_id"`
	CreatedBy string         `gorm:"column:created_by" form:"created_by" json:"created_by"`
	CreatedAt datatypes.Time `gorm:"column:created_at" form:"created_at" json:"created_at"`
	// MenuIdList   []string       `gorm:"-" form:"-" json:"-"`
}

func NewRolePermissionModel() *RoleMenuModel {
	return &RoleMenuModel{}
}

func (r *RoleMenuModel) TableName() string {
	return "sys_role_menu"
}
